export default {
    showheader({ commit }) {
        commit('showheader')
    },
    hideheader({ commit ,state}) {
        commit('hideheader')
    },
    showloading({commit}){
        commit('showloading')
    },
    hideloading({commit}){
        commit('hideloading')
    },
    showfooter({commit}){
        commit('showfooter');
    },
    hidefooter({commit}){
        commit('hidefooter');
    },

    login({commit}){
        // sessionStorage.getItem('user')?
        commit('login');
    },
    logout({commit}){
        commit('logout');
    },
    saveName({commit},username){
        commit('saveName',username)
    },

    searchRes({commit},res){//搜索结果
        commit('searchRes',res)
    },

    emitHash({commit},Hash){//发送Hash值
        commit('emitHash',Hash)
    },
    SearchWord({commit},keyword){
        commit('SearchWord',keyword)
    },
    emitLyc({commit},lyc){  //发送歌词
        lyc = JSON.parse(lyc).lyc
        // console.log('commitlyc:',lyc);
        commit('emitLyc',lyc);
    },
}